
{if is_array($filesInfo) && !empty($filesInfo.$complexStep.file_url)}ddddd

	<div id="videoContainer_{$field_id}_{$complexStep}"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this video.</div>
	<script type="text/javascript" src="{$GLOBALS.site_url}/files/video/swfobject.js"></script>
	<script type="text/javascript">
		var s1 = new SWFObject("{$GLOBALS.site_url}/files/video/player.swf","ply_{$complexStep}","100%","250","9","#FFFFFF");
		s1.addParam("allowscriptaccess","always");
		s1.addParam("allowfullscreen","true");
		s1.addParam("wmode", "opaque");
		s1.addParam("flashvars","file={$filesInfo.$complexStep.file_url}&image={$filesInfo.$complexStep.file_url|regex_replace:"/flv/":"png"}&fullscreen=true");
		s1.write("videoContainer_{$field_id}_{$complexStep}");
	</script>
{else}
	{if $videoFileLink} {* its for complex fields SJB-825 *}
	<div id="videoContainer_{$field_id}"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this video.</div>
	<script type="text/javascript" src="{$GLOBALS.site_url}/files/video/swfobject.js"></script>
	<script type="text/javascript">
		var s1 = new SWFObject("{$GLOBALS.site_url}/files/video/player.swf","ply","100%","250","9","#FFFFFF");
		s1.addParam("allowscriptaccess","always");
		s1.addParam("allowfullscreen","true");
		s1.addParam("wmode", "opaque");
		s1.addParam("flashvars","file={$videoFileLink}&image={$videoFileLink|regex_replace:"/flv/":"png"}&fullscreen=true");
		s1.write("videoContainer_{$field_id}");
	</script>
	{elseif !empty($video.file_id) && !empty($value.file_url)}
	<div id="videoContainer_{$video.file_id}"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this video.</div>
	<script type="text/javascript" src="{$GLOBALS.site_url}/files/video/swfobject.js"></script>
	<script type="text/javascript">
		var s1 = new SWFObject("{$GLOBALS.site_url}/files/video/player.swf","ply","100%","250","9","#FFFFFF");
		s1.addParam("allowscriptaccess","always");
		s1.addParam("allowfullscreen","true");
		s1.addParam("wmode", "opaque");
		s1.addParam("flashvars","file={$value.file_url}&image={$value.file_url|regex_replace:"/flv/":"png"}&fullscreen=true");
		s1.write("videoContainer_{$video.file_id}");
	</script>
	{/if}
{/if}

